Page({

  data: {
    name: "测试名字",
    age: 2,
    array: [
      {
        title: "新闻1",
        desc: "内容1"
      },
      {
        title: "新闻2",
        desc: "内容2"
      },
      {
        title: "新闻3",
        desc: "内容3"
      },
      {
        title: "新闻4",
        desc: "内容4"
      }

    ]
  },

  addClick: function () {

    var arr = this.data.array;

    arr.push(
      {
        title : "我是添加的",
        desc : "我是添加的内容"
      }
    )

    this.setData({
      array : arr
    })

    console.log(arr);

  }




})